const Mock=require('mockjs');
let product_list =Mock.mock({
    "list|100":[{
        id:"@id",
        name:"@cname",
        "price|1-100":1,
        title:"@ctitle(2,10)",
        cartnum:0,
        "stock|0-100":0,
        image:"@image(40X64,@color,@city)"
    }]
});

let dish_list=Mock.mock({
    "铁板烧系列|5-10":[{
        id:"@id",
        "price|1-100":1,
        title:"@ctitle(5,10)",
        cartnum:0,
        "stock|0-100":0,
        image:"@image(40X64,@color,@city)"
    }],
    "点心系列|2-10":[{
        id:"@id",
        "price|1-100":1,
        title:"@ctitle(4,10)",
        cartnum:0,
        "stock|0-100":0,
        image:"@image(40X64,@color,@city)"
    }],
    "炒面系列|4-10":[{
        id:"@id",
        "price|1-100":1,
        title:"@ctitle(3,10)",
        cartnum:0,
        "stock|0-100":0,
        image:"@image(40X64,@color,@city)"
    }],
})

console.log('dish_list',dish_list);

module.exports={
    product_list,
    dish_list
}